package com.devshephard.test;

import java.util.LinkedList;

public class testAA {
    public static void main(String[] args) throws Exception {


        LinkedList<Object> linkedList = new LinkedList<>();
        Object obj1 = new Object();
        Object obj2 = new Object();
        Object obj3 = new Object();
        linkedList.add(obj1);
        linkedList.add(obj2);
        linkedList.add(obj3);
        linkedList.indexOf(obj1);
        System.out.println(linkedList.indexOf(obj2));
    }
}
